# 函数

def add01(x1,x2):
    res = x1 + x2
    return res

def eat():
    print("吃饭。。。")

def eat01(what1):
    print("我吃了{}".format(what1))
    return "天气很好 ，我吃的很多"

def eat02(time):
    if 6 <= time and time <= 9:
        return "吃早饭"
    if 11 <= time and time <= 14:
        return "吃午饭"
    if 18 <= time and time <= 20:
        return "吃晚饭"

def eat03():
    print("睡觉。。。")
    list = [1,2,3,4,"打豆豆"]
    return list

def eat04():
    print("睡觉。。。")
    str_01 = "aaa"
    str_02 = "bbb"
    return str_01,str_02

def eat05(what1="酸奶",what2="鸡蛋"):
    print("我今天想吃"+what1+"和"+what2)

def eat06(what1,what2,*args):
    print(*args)
    print(args)
    print("我今天想吃" + what1 + "和" + what2 + "，我还想吃{}".format(args))

def eat07(what1,what2,**kwargs):
    print(kwargs)
    print("我今天想吃" + what1 + "和" + what2)


"""
简易计算器
"""
def add(x1,x2):
    return x1+x2
def sub(x1,x2):
    return x1-x2
def mult(x1,x2):
    return x1 * x2
def div(x1,x2):
    if x2 == 0:
        print("被除数不能为0！！！")
        return None
    return x1 / x2

def func(x1,x2,str1):
    # print(str1)
    if str1 ==  "+":
        res = "执行了加法操作，{},{},{}的值为：{}".format(x1,str1,x2,add(x1,x2))
        return res
    if str1 == "-":
        res = "执行了减法操作，{},{},{}的值为：{}".format(x1,str1,x2,add(x1,x2))
        return res
    if str1 == "*":
        res = "执行了乘法操作，{},{},{}的值为：{}".format(x1,str1,x2,add(x1,x2))
        return res
    if str1 == "/":
        res = "执行了除法操作，{},{},{}的值为：{}".format(x1,str1,x2,add(x1,x2))
        return res


if __name__ == '__main__':
    # 一系列代码
    print(".....")
    # a = 456
    # b = 798
    # res01 = add01(a,b)
    # print(res01)
    # eat()
    # str01 = "苹果"
    # eat01(str01)
    # str02 = eat01("香蕉")
    # print(str02)
    # time01 = int(input("请输入一个时间:"))
    # str03 = eat02(time01)
    # print(str03)
    # eat03()
    # str04 = eat03()
    # print(str04)
    # return_res = eat04()
    # print(return_res)
    # str05 = "包子"
    # str06 = "豆浆"
    # eat05(str05,str06)
    # eat05(str06)
    # eat05()
    # eat05(what1=str06)
    # eat06(str05,str06,"苹果","香蕉")
    # eat07(str05,str06,fruit1 = "苹果",fruit2 = "香蕉")

    x = int(input("x:"))
    y = int(input("y:"))
    str = input("符号:")
    res = func(x, y, str1 = str)
    print(res)
